package org.base23.video.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.base23.video.domain.entity.UserAnalysisResult;

import java.util.List;

/**
 * 用户分析结果Mapper
 */
@Mapper
public interface UserAnalysisResultMapper extends BaseMapper<UserAnalysisResult> {

    /**
     * 根据用户ID查询分析结果列表
     */
    List<UserAnalysisResult> selectByUserId(@Param("userId") Long userId);

    /**
     * 根据用户ID和结果ID查询
     */
    UserAnalysisResult selectByUserIdAndResultId(@Param("userId") Long userId, @Param("resultId") String resultId);

    /**
     * 根据用户ID和运动类型查询
     */
    List<UserAnalysisResult> selectByUserIdAndSportType(@Param("userId") Long userId, @Param("sportType") String sportType);
} 